#!/bin/sh
PASSENGER="http://127.0.0.1:5001"
HEARTBEAT="/hello/heartbeat"
GIVEUP_AFTER=15 
AGENT="curl -o - -s -m $GIVEUP_AFTER"

result=`$AGENT $PASSENGER$HEARTBEAT` 

if ( echo "$result" | grep -q '^ok:' )
then
	exit 0
else
	exit 1
fi
